//
//  ZWJNetworkApi.m
//  Free
//
//  Created by 张炜健 on 2018/4/28.
//  Copyright © 2018年 张炜健. All rights reserved.
//

#import "ZWJNetworkApi.h"

@implementation ZWJNetworkApi{
    //请求参数
    NSDictionary *_requestDic;
    NSString *_url;
}

- (id)initWithRequestData:(NSDictionary *)requestData WithUrl:(NSString *)url{
    self = [super init];
    if (self) {
        _requestDic = requestData;
        _url = url;
    }
    return self;
}

//请求地址
- (NSString *)requestUrl {
    return _url;
}

//返回类型 HTTP 和 JSON 两种
- (YTKRequestSerializerType)requestSerializerType {
    return YTKRequestSerializerTypeHTTP;
}
//请求类型 HTTP 和 JSON 两种
-(YTKResponseSerializerType)responseSerializerType{
    return YTKResponseSerializerTypeHTTP;
}
//请求类型 get post
- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

//请求参数
- (id)requestArgument {
    return _requestDic;
}



@end
